/**
 * 作者: lipengfei
 * 日期: 2021-12-23 19:53:30
 * 备注: 充值产品包表
 */
package com.motu.monstercity.module.common.iap;

import io.vertx.core.json.JsonObject;

public class IapProductModel {
	protected int id; // id
	protected String packageName; // 包名
	protected int iapId; // 充值项id
	protected String productId; // 产品id

	public IapProductModel() {
	}

	public IapProductModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		packageName = obj.containsKey("package_name") ? obj.getString("package_name") : "";
		iapId = obj.containsKey("iap_id") ? obj.getInteger("iap_id") : 0;
		productId = obj.containsKey("product_id") ? obj.getString("product_id") : "";
	}

	public int getId() {
		return id;
	}

	public String getPackageName() {
		return packageName;
	}

	public int getIapId() {
		return iapId;
	}

	public String getProductId() {
		return productId;
	}

}
